home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-08-18 | 4.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: PUFPatches.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Aug 18 15:40:01 1993, modified Wed Aug 18 15:40:01 1993, creator Think C, type ASCII, 4060 bytes "PUFPatches.c" , at 0x105c 402 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 50 55 46 50 61 74 | 63 68 65 73 2e 63 00 00 |..PUFPat|ches.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f dc 00 | 00 01 92 a8 98 36 11 a8 |........|.....6..|
|00000060| 98 36 11 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fb 17 00 00 |........|........|
|00000080| 2f 2a 0d 09 50 55 46 50 | 61 74 63 68 65 73 2e 63 |/*..PUFP|atches.c|
|00000090| 0d 09 0d 09 70 61 74 63 | 68 65 73 20 74 6f 20 74 |....patc|hes to t|
|000000a0| 68 69 6e 6b 20 70 72 6f | 6a 65 63 74 20 6d 61 6e |hink pro|ject man|
|000000b0| 61 67 65 72 20 74 6f 20 | 61 6c 6c 6f 77 20 73 65 |ager to |allow se|
|000000c0| 6c 65 63 74 69 6e 67 20 | 6f 66 20 6d 65 6e 75 20 |lecting |of menu |
|000000d0| 69 74 65 6d 73 0d 0d 09 | a9 20 31 39 39 33 20 53 |items...|. 1993 S|
|000000e0| 74 65 76 65 20 5a 65 6c | 6c 65 72 73 2c 20 41 6c |teve Zel|lers, Al|
|000000f0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|00000100| 64 0d 09 0d 09 3c 72 65 | 76 69 73 69 6f 6e 20 68 |d....<re|vision h|
|00000110| 69 73 6f 74 72 79 3e 0d | 09 30 38 2f 31 38 2f 39 |isotry>.|.08/18/9|
|00000120| 33 20 20 73 6d 7a 20 20 | 66 69 72 73 74 20 62 65 |3 smz |first be|
|00000130| 74 61 20 72 65 6c 65 61 | 73 65 0d 2a 2f 0d 0d 23 |ta relea|se.*/..#|
|00000140| 69 6e 63 6c 75 64 65 20 | 22 50 55 46 50 61 74 63 |include |"PUFPatc|
|00000150| 68 65 73 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |hes.h".#|include |
|00000160| 22 50 55 46 49 6e 74 65 | 72 66 61 63 65 2e 68 22 |"PUFInte|rface.h"|
|00000170| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 53 65 74 55 70 |.#includ|e <SetUp|
|00000180| 41 34 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |A4.h>.#i|nclude <|
|00000190| 54 72 61 70 73 2e 68 3e | 0d 0d 73 74 61 74 69 63 |Traps.h>|..static|
|000001a0| 20 76 6f 69 64 20 50 6f | 6b 65 4d 65 6e 75 42 61 | void Po|keMenuBa|
|000001b0| 72 28 29 0d 7b 0d 09 50 | 6f 69 6e 74 20 6d 65 6e |r().{..P|oint men|
|000001c0| 75 42 61 72 3b 0d 09 45 | 76 51 45 6c 2a 20 6d 79 |uBar;..E|vQEl* my|
|000001d0| 51 45 6c 50 74 72 3b 0d | 09 6d 65 6e 75 42 61 72 |QElPtr;.|.menuBar|
|000001e0| 2e 68 20 3d 20 30 3b 0d | 09 6d 65 6e 75 42 61 72 |.h = 0;.|.menuBar|
|000001f0| 2e 76 20 3d 20 30 3b 0d | 09 0d 09 50 50 6f 73 74 |.v = 0;.|...PPost|
|00000200| 45 76 65 6e 74 28 6d 6f | 75 73 65 44 6f 77 6e 2c |Event(mo|useDown,|
|00000210| 20 30 2c 20 26 6d 79 51 | 45 6c 50 74 72 29 3b 0d | 0, &myQ|ElPtr);.|
|00000220| 09 6d 79 51 45 6c 50 74 | 72 2d 3e 65 76 74 51 57 |.myQElPt|r->evtQW|
|00000230| 68 65 72 65 20 3d 20 6d | 65 6e 75 42 61 72 3b 0d |here = m|enuBar;.|
|00000240| 09 0d 09 50 50 6f 73 74 | 45 76 65 6e 74 28 6d 6f |...PPost|Event(mo|
|00000250| 75 73 65 55 70 2c 20 30 | 2c 20 26 6d 79 51 45 6c |useUp, 0|, &myQEl|
|00000260| 50 74 72 29 3b 0d 09 6d | 79 51 45 6c 50 74 72 2d |Ptr);..m|yQElPtr-|
|00000270| 3e 65 76 74 51 57 68 65 | 72 65 20 3d 20 6d 65 6e |>evtQWhe|re = men|
|00000280| 75 42 61 72 3b 0d 7d 0d | 0d 2f 2f 20 66 6f 72 20 |uBar;.}.|.// for |
|00000290| 74 68 65 20 4d 65 6e 75 | 53 65 6c 65 63 74 20 70 |the Menu|Select p|
|000002a0| 61 74 63 68 0d 74 79 70 | 65 64 65 66 20 70 61 73 |atch.typ|edef pas|
|000002b0| 63 61 6c 20 6c 6f 6e 67 | 20 28 2a 4d 65 6e 75 53 |cal long| (*MenuS|
|000002c0| 65 6c 65 63 74 50 72 6f | 63 29 28 50 6f 69 6e 74 |electPro|c)(Point|
|000002d0| 20 77 68 65 72 65 29 3b | 0d 4d 65 6e 75 53 65 6c | where);|.MenuSel|
|000002e0| 65 63 74 50 72 6f 63 20 | 74 68 65 4f 6c 64 4d 65 |ectProc |theOldMe|
|000002f0| 6e 75 53 65 6c 65 63 74 | 3b 0d 42 6f 6f 6c 65 61 |nuSelect|;.Boolea|
|00000300| 6e 20 74 68 65 50 61 74 | 63 68 41 63 74 69 76 65 |n thePat|chActive|
|00000310| 3b 0d 6c 6f 6e 67 20 74 | 68 65 44 65 73 69 72 65 |;.long t|heDesire|
|00000320| 64 52 65 73 75 6c 74 3b | 0d 0d 73 74 61 74 69 63 |dResult;|..static|
|00000330| 20 70 61 73 63 61 6c 20 | 6c 6f 6e 67 20 5f 50 61 | pascal |long _Pa|
|00000340| 74 63 68 65 64 4d 65 6e | 75 53 65 6c 65 63 74 28 |tchedMen|uSelect(|
|00000350| 50 6f 69 6e 74 20 77 68 | 65 72 65 29 0d 7b 0d 09 |Point wh|ere).{..|
|00000360| 6c 6f 6e 67 20 72 65 73 | 75 6c 74 20 3d 20 30 3b |long res|ult = 0;|
|00000370| 0d 0d 09 53 65 74 55 70 | 41 34 28 29 3b 0d 09 0d |...SetUp|A4();...|
|00000380| 09 69 66 20 28 74 68 65 | 50 61 74 63 68 41 63 74 |.if (the|PatchAct|
|00000390| 69 76 65 29 20 7b 0d 09 | 09 74 68 65 50 61 74 63 |ive) {..|.thePatc|
|000003a0| 68 41 63 74 69 76 65 20 | 3d 20 66 61 6c 73 65 3b |hActive |= false;|
|000003b0| 0d 09 09 72 65 73 75 6c | 74 20 3d 20 74 68 65 44 |...resul|t = theD|
|000003c0| 65 73 69 72 65 64 52 65 | 73 75 6c 74 3b 0d 09 09 |esiredRe|sult;...|
|000003d0| 2f 2f 20 68 61 6e 67 20 | 6f 75 74 20 74 69 6c 6c |// hang |out till|
|000003e0| 20 6d 6f 75 73 65 20 69 | 73 20 75 70 20 28 63 6f | mouse i|s up (co|
|000003f0| 6e 73 75 6d 65 20 6d 6f | 75 73 65 20 75 70 29 0d |nsume mo|use up).|
|00000400| 09 09 77 68 69 6c 65 20 | 28 57 61 69 74 4d 6f 75 |..while |(WaitMou|
|00000410| 73 65 55 70 28 29 29 0d | 09 09 09 3b 0d 09 7d 20 |seUp()).|...;..} |
|00000420| 65 6c 73 65 20 7b 0d 09 | 09 72 65 73 75 6c 74 20 |else {..|.result |
|00000430| 3d 20 28 2a 74 68 65 4f | 6c 64 4d 65 6e 75 53 65 |= (*theO|ldMenuSe|
|00000440| 6c 65 63 74 29 28 77 68 | 65 72 65 29 3b 0d 09 7d |lect)(wh|ere);..}|
|00000450| 0d 09 0d 09 52 65 73 74 | 6f 72 65 41 34 28 29 3b |....Rest|oreA4();|
|00000460| 0d 09 0d 09 72 65 74 75 | 72 6e 20 72 65 73 75 6c |....retu|rn resul|
|00000470| 74 3b 0d 7d 0d 0d 76 6f | 69 64 20 53 65 6c 65 63 |t;.}..vo|id Selec|
|00000480| 74 4d 65 6e 75 49 74 65 | 6d 28 6c 6f 6e 67 20 69 |tMenuIte|m(long i|
|00000490| 74 65 6d 29 0d 7b 0d 09 | 74 68 65 44 65 73 69 72 |tem).{..|theDesir|
|000004a0| 65 64 52 65 73 75 6c 74 | 20 3d 20 69 74 65 6d 3b |edResult| = item;|
|000004b0| 0d 09 74 68 65 50 61 74 | 63 68 41 63 74 69 76 65 |..thePat|chActive|
|000004c0| 20 3d 20 74 72 75 65 3b | 0d 09 50 6f 6b 65 4d 65 | = true;|..PokeMe|
|000004d0| 6e 75 42 61 72 28 29 3b | 0d 7d 0d 0d 0d 2f 2f 20 |nuBar();|.}...// |
|000004e0| 66 6f 72 20 6d 6f 76 69 | 6e 67 20 77 69 6e 64 6f |for movi|ng windo|
|000004f0| 77 73 20 61 72 6f 75 6e | 64 0d 65 6e 75 6d 20 7b |ws aroun|d.enum {|
|00000500| 0d 09 65 4e 6f 53 74 61 | 74 65 2c 0d 09 0d 09 65 |..eNoSta|te,....e|
|00000510| 49 6e 69 74 69 61 6c 53 | 74 61 74 65 2c 0d 0d 09 |InitialS|tate,...|
|00000520| 65 44 6f 44 72 61 67 20 | 3d 20 65 49 6e 69 74 69 |eDoDrag |= eIniti|
|00000530| 61 6c 53 74 61 74 65 2c | 0d 09 65 44 6f 47 72 6f |alState,|..eDoGro|
|00000540| 77 2c 0d 09 0d 09 65 4c | 61 73 74 53 74 61 74 65 |w,....eL|astState|
|00000550| 20 3d 20 65 44 6f 47 72 | 6f 77 0d 7d 3b 0d 73 68 | = eDoGr|ow.};.sh|
|00000560| 6f 72 74 20 74 68 65 54 | 72 61 6e 73 69 74 69 6f |ort theT|ransitio|
|00000570| 6e 73 5b 5d 20 3d 20 7b | 0d 09 65 44 6f 44 72 61 |ns[] = {|..eDoDra|
|00000580| 67 2c 09 09 09 2f 2f 20 | 65 4e 6f 53 74 61 74 65 |g,...// |eNoState|
|00000590| 20 2d 3e 0d 09 65 44 6f | 47 72 6f 77 2c 09 09 09 | ->..eDo|Grow,...|
|000005a0| 2f 2f 20 65 44 6f 44 72 | 61 67 20 2d 3e 0d 09 65 |// eDoDr|ag ->..e|
|000005b0| 4e 6f 53 74 61 74 65 09 | 09 09 2f 2f 20 65 44 6f |NoState.|..// eDo|
|000005c0| 47 72 6f 77 20 2d 3e 20 | 44 6f 6e 65 21 0d 7d 3b |Grow -> |Done!.};|
|000005d0| 0d 0d 74 79 70 65 64 65 | 66 20 70 61 73 63 61 6c |..typede|f pascal|
|000005e0| 20 76 6f 69 64 20 28 2a | 44 72 61 67 57 69 6e 64 | void (*|DragWind|
|000005f0| 6f 77 50 72 6f 63 50 74 | 72 29 28 57 69 6e 64 6f |owProcPt|r)(Windo|
|00000600| 77 50 74 72 20 77 69 6e | 2c 20 50 6f 69 6e 74 20 |wPtr win|, Point |
|00000610| 73 74 61 72 74 50 6f 69 | 6e 74 2c 20 52 65 63 74 |startPoi|nt, Rect|
|00000620| 2a 20 6c 69 6d 69 74 52 | 65 63 74 29 3b 0d 74 79 |* limitR|ect);.ty|
|00000630| 70 65 64 65 66 20 70 61 | 73 63 61 6c 20 6c 6f 6e |pedef pa|scal lon|
|00000640| 67 20 28 2a 47 72 6f 77 | 57 69 6e 64 6f 77 50 72 |g (*Grow|WindowPr|
|00000650| 6f 63 50 74 72 29 28 57 | 69 6e 64 6f 77 50 74 72 |ocPtr)(W|indowPtr|
|00000660| 20 77 69 6e 2c 20 50 6f | 69 6e 74 20 73 74 61 72 | win, Po|int star|
|00000670| 74 50 6f 69 6e 74 2c 20 | 52 65 63 74 2a 20 6c 69 |tPoint, |Rect* li|
|00000680| 6d 69 74 52 65 63 74 29 | 3b 0d 74 79 70 65 64 65 |mitRect)|;.typede|
|00000690| 66 20 70 61 73 63 61 6c | 20 73 68 6f 72 74 20 28 |f pascal| short (|
|000006a0| 2a 46 69 6e 64 57 69 6e | 64 6f 77 50 72 6f 63 50 |*FindWin|dowProcP|
|000006b0| 74 72 29 28 50 6f 69 6e | 74 20 70 2c 20 57 69 6e |tr)(Poin|t p, Win|
|000006c0| 64 6f 77 50 74 72 2a 20 | 70 57 69 6e 29 3b 0d 0d |dowPtr* |pWin);..|
|000006d0| 44 72 61 67 57 69 6e 64 | 6f 77 50 72 6f 63 50 74 |DragWind|owProcPt|
|000006e0| 72 20 74 68 65 4f 6c 64 | 44 72 61 67 57 69 6e 64 |r theOld|DragWind|
|000006f0| 6f 77 3b 0d 47 72 6f 77 | 57 69 6e 64 6f 77 50 72 |ow;.Grow|WindowPr|
|00000700| 6f 63 50 74 72 20 74 68 | 65 4f 6c 64 47 72 6f 77 |ocPtr th|eOldGrow|
|00000710| 57 69 6e 64 6f 77 3b 0d | 46 69 6e 64 57 69 6e 64 |Window;.|FindWind|
|00000720| 6f 77 50 72 6f 63 50 74 | 72 20 74 68 65 4f 6c 64 |owProcPt|r theOld|
|00000730| 46 69 6e 64 57 69 6e 64 | 6f 77 3b 0d 0d 73 68 6f |FindWind|ow;..sho|
|00000740| 72 74 20 74 68 65 43 75 | 72 72 65 6e 74 53 74 61 |rt theCu|rrentSta|
|00000750| 74 65 3b 0d 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |te;.Wind|owPtr th|
|00000760| 65 44 65 73 69 72 65 64 | 57 69 6e 64 6f 77 3b 0d |eDesired|Window;.|
|00000770| 50 6f 69 6e 74 20 74 68 | 65 44 65 73 69 72 65 64 |Point th|eDesired|
|00000780| 54 6f 70 4c 65 66 74 3b | 0d 50 6f 69 6e 74 20 74 |TopLeft;|.Point t|
|00000790| 68 65 44 65 73 69 72 65 | 64 53 69 7a 65 3b 0d 0d |heDesire|dSize;..|
|000007a0| 73 74 61 74 69 63 20 70 | 61 73 63 61 6c 20 76 6f |static p|ascal vo|
|000007b0| 69 64 20 5f 50 61 74 63 | 68 65 64 44 72 61 67 57 |id _Patc|hedDragW|
|000007c0| 69 6e 64 6f 77 28 57 69 | 6e 64 6f 77 50 74 72 20 |indow(Wi|ndowPtr |
|000007d0| 77 69 6e 2c 20 50 6f 69 | 6e 74 20 73 74 61 72 74 |win, Poi|nt start|
|000007e0| 50 6f 69 6e 74 2c 20 52 | 65 63 74 2a 20 6c 69 6d |Point, R|ect* lim|
|000007f0| 69 74 52 65 63 74 29 0d | 7b 0d 09 53 65 74 55 70 |itRect).|{..SetUp|
|00000800| 41 34 28 29 3b 0d 09 0d | 09 2f 2f 20 70 69 6e 0d |A4();...|.// pin.|
|00000810| 09 69 66 20 28 74 68 65 | 43 75 72 72 65 6e 74 53 |.if (the|CurrentS|
|00000820| 74 61 74 65 20 21 3d 20 | 65 44 6f 44 72 61 67 29 |tate != |eDoDrag)|
|00000830| 0d 09 09 28 2a 74 68 65 | 4f 6c 64 44 72 61 67 57 |...(*the|OldDragW|
|00000840| 69 6e 64 6f 77 29 28 77 | 69 6e 2c 20 73 74 61 72 |indow)(w|in, star|
|00000850| 74 50 6f 69 6e 74 2c 20 | 6c 69 6d 69 74 52 65 63 |tPoint, |limitRec|
|00000860| 74 29 3b 0d 09 65 6c 73 | 65 20 7b 0d 09 09 4d 6f |t);..els|e {...Mo|
|00000870| 76 65 57 69 6e 64 6f 77 | 28 77 69 6e 2c 20 74 68 |veWindow|(win, th|
|00000880| 65 44 65 73 69 72 65 64 | 54 6f 70 4c 65 66 74 2e |eDesired|TopLeft.|
|00000890| 68 2c 20 74 68 65 44 65 | 73 69 72 65 64 54 6f 70 |h, theDe|siredTop|
|000008a0| 4c 65 66 74 2e 76 2c 20 | 74 72 75 65 29 3b 0d 09 |Left.v, |true);..|
|000008b0| 09 74 68 65 43 75 72 72 | 65 6e 74 53 74 61 74 65 |.theCurr|entState|
|000008c0| 20 3d 20 74 68 65 54 72 | 61 6e 73 69 74 69 6f 6e | = theTr|ansition|
|000008d0| 73 5b 74 68 65 43 75 72 | 72 65 6e 74 53 74 61 74 |s[theCur|rentStat|
|000008e0| 65 5d 3b 0d 09 09 50 6f | 6b 65 4d 65 6e 75 42 61 |e];...Po|keMenuBa|
|000008f0| 72 28 29 3b 0d 09 7d 0d | 0d 09 52 65 73 74 6f 72 |r();..}.|..Restor|
|00000900| 65 41 34 28 29 3b 0d 7d | 0d 0d 73 74 61 74 69 63 |eA4();.}|..static|
|00000910| 20 70 61 73 63 61 6c 20 | 6c 6f 6e 67 20 5f 50 61 | pascal |long _Pa|
|00000920| 74 63 68 65 64 47 72 6f | 77 57 69 6e 64 6f 77 28 |tchedGro|wWindow(|
|00000930| 57 69 6e 64 6f 77 50 74 | 72 20 77 69 6e 2c 20 50 |WindowPt|r win, P|
|00000940| 6f 69 6e 74 20 73 74 61 | 72 74 50 6f 69 6e 74 2c |oint sta|rtPoint,|
|00000950| 20 52 65 63 74 2a 20 6c | 69 6d 69 74 52 65 63 74 | Rect* l|imitRect|
|00000960| 29 0d 7b 0d 09 6c 6f 6e | 67 20 72 65 73 75 6c 74 |).{..lon|g result|
|00000970| 3b 0d 09 0d 09 53 65 74 | 55 70 41 34 28 29 3b 0d |;....Set|UpA4();.|
|00000980| 09 0d 09 69 66 20 28 74 | 68 65 43 75 72 72 65 6e |...if (t|heCurren|
|00000990| 74 53 74 61 74 65 20 21 | 3d 20 65 44 6f 47 72 6f |tState !|= eDoGro|
|000009a0| 77 29 09 0d 09 09 72 65 | 73 75 6c 74 20 3d 20 28 |w)....re|sult = (|
|000009b0| 2a 74 68 65 4f 6c 64 47 | 72 6f 77 57 69 6e 64 6f |*theOldG|rowWindo|
|000009c0| 77 29 28 77 69 6e 2c 20 | 73 74 61 72 74 50 6f 69 |w)(win, |startPoi|
|000009d0| 6e 74 2c 20 6c 69 6d 69 | 74 52 65 63 74 29 3b 0d |nt, limi|tRect);.|
|000009e0| 09 65 6c 73 65 20 7b 0d | 09 09 72 65 73 75 6c 74 |.else {.|..result|
|000009f0| 20 3d 20 2a 28 6c 6f 6e | 67 2a 29 20 26 74 68 65 | = *(lon|g*) &the|
|00000a00| 44 65 73 69 72 65 64 53 | 69 7a 65 3b 0d 09 09 74 |DesiredS|ize;...t|
|00000a10| 68 65 43 75 72 72 65 6e | 74 53 74 61 74 65 20 3d |heCurren|tState =|
|00000a20| 20 74 68 65 54 72 61 6e | 73 69 74 69 6f 6e 73 5b | theTran|sitions[|
|00000a30| 74 68 65 43 75 72 72 65 | 6e 74 53 74 61 74 65 5d |theCurre|ntState]|
|00000a40| 3b 0d 09 7d 0d 09 0d 09 | 52 65 73 74 6f 72 65 41 |;..}....|RestoreA|
|00000a50| 34 28 29 3b 0d 0d 09 72 | 65 74 75 72 6e 20 72 65 |4();...r|eturn re|
|00000a60| 73 75 6c 74 3b 0d 7d 0d | 0d 0d 73 74 61 74 69 63 |sult;.}.|..static|
|00000a70| 20 70 61 73 63 61 6c 20 | 73 68 6f 72 74 20 5f 50 | pascal |short _P|
|00000a80| 61 74 63 68 65 64 46 69 | 6e 64 57 69 6e 64 6f 77 |atchedFi|ndWindow|
|00000a90| 28 50 6f 69 6e 74 20 70 | 2c 20 57 69 6e 64 6f 77 |(Point p|, Window|
|00000aa0| 50 74 72 2a 20 70 57 69 | 6e 29 0d 7b 0d 09 73 68 |Ptr* pWi|n).{..sh|
|00000ab0| 6f 72 74 20 72 65 73 75 | 6c 74 3b 0d 09 0d 09 53 |ort resu|lt;....S|
|00000ac0| 65 74 55 70 41 34 28 29 | 3b 0d 09 0d 09 73 77 69 |etUpA4()|;....swi|
|00000ad0| 74 63 68 20 28 74 68 65 | 43 75 72 72 65 6e 74 53 |tch (the|CurrentS|
|00000ae0| 74 61 74 65 29 20 7b 0d | 09 09 63 61 73 65 20 65 |tate) {.|..case e|
|00000af0| 44 6f 44 72 61 67 3a 0d | 09 09 09 72 65 73 75 6c |DoDrag:.|...resul|
|00000b00| 74 20 3d 20 69 6e 44 72 | 61 67 3b 0d 09 09 09 2a |t = inDr|ag;....*|
|00000b10| 70 57 69 6e 20 3d 20 74 | 68 65 44 65 73 69 72 65 |pWin = t|heDesire|
|00000b20| 64 57 69 6e 64 6f 77 3b | 0d 09 09 09 62 72 65 61 |dWindow;|....brea|
|00000b30| 6b 3b 0d 09 09 63 61 73 | 65 20 65 44 6f 47 72 6f |k;...cas|e eDoGro|
|00000b40| 77 3a 0d 09 09 09 72 65 | 73 75 6c 74 20 3d 20 69 |w:....re|sult = i|
|00000b50| 6e 47 72 6f 77 3b 0d 09 | 09 09 2a 70 57 69 6e 20 |nGrow;..|..*pWin |
|00000b60| 3d 20 74 68 65 44 65 73 | 69 72 65 64 57 69 6e 64 |= theDes|iredWind|
|00000b70| 6f 77 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |ow;....b|reak;...|
|00000b80| 64 65 66 61 75 6c 74 3a | 0d 09 09 09 69 66 20 28 |default:|....if (|
|00000b90| 74 68 65 43 75 72 72 65 | 6e 74 53 74 61 74 65 20 |theCurre|ntState |
|00000ba0| 21 3d 20 65 4e 6f 53 74 | 61 74 65 29 20 7b 0d 09 |!= eNoSt|ate) {..|
|00000bb0| 09 09 09 44 65 62 75 67 | 53 74 72 28 22 5c 70 49 |...Debug|Str("\pI|
|00000bc0| 6e 76 61 6c 69 64 20 73 | 74 61 74 65 20 69 6e 20 |nvalid s|tate in |
|00000bd0| 46 69 6e 64 57 69 6e 64 | 6f 77 22 29 3b 0d 09 09 |FindWind|ow");...|
|00000be0| 09 09 74 68 65 43 75 72 | 72 65 6e 74 53 74 61 74 |..theCur|rentStat|
|00000bf0| 65 20 3d 20 65 4e 6f 53 | 74 61 74 65 3b 0d 09 09 |e = eNoS|tate;...|
|00000c00| 09 7d 0d 09 09 09 72 65 | 73 75 6c 74 20 3d 20 28 |.}....re|sult = (|
|00000c10| 2a 74 68 65 4f 6c 64 46 | 69 6e 64 57 69 6e 64 6f |*theOldF|indWindo|
|00000c20| 77 29 28 70 2c 20 70 57 | 69 6e 29 3b 0d 09 09 09 |w)(p, pW|in);....|
|00000c30| 62 72 65 61 6b 3b 0d 09 | 7d 0d 09 0d 09 52 65 73 |break;..|}....Res|
|00000c40| 74 6f 72 65 41 34 28 29 | 3b 0d 09 0d 09 72 65 74 |toreA4()|;....ret|
|00000c50| 75 72 6e 20 72 65 73 75 | 6c 74 3b 0d 7d 0d 0d 76 |urn resu|lt;.}..v|
|00000c60| 6f 69 64 20 50 55 46 5a | 6f 6f 6d 57 69 6e 64 6f |oid PUFZ|oomWindo|
|00000c70| 77 28 50 6f 69 6e 74 20 | 74 6f 70 4c 65 66 74 2c |w(Point |topLeft,|
|00000c80| 20 50 6f 69 6e 74 20 73 | 69 7a 65 29 0d 7b 0d 09 | Point s|ize).{..|
|00000c90| 69 66 20 28 74 68 65 43 | 75 72 72 65 6e 74 53 74 |if (theC|urrentSt|
|00000ca0| 61 74 65 20 21 3d 20 65 | 4e 6f 53 74 61 74 65 29 |ate != e|NoState)|
|00000cb0| 0d 09 09 44 65 62 75 67 | 53 74 72 28 22 5c 70 68 |...Debug|Str("\ph|
|00000cc0| 61 76 65 6e 27 74 20 66 | 69 6e 69 73 68 65 64 20 |aven't f|inished |
|00000cd0| 6c 61 73 74 20 6f 6e 65 | 20 79 65 74 21 22 29 3b |last one| yet!");|
|00000ce0| 0d 09 65 6c 73 65 20 7b | 0d 09 09 74 68 65 44 65 |..else {|...theDe|
|00000cf0| 73 69 72 65 64 57 69 6e | 64 6f 77 20 3d 20 46 72 |siredWin|dow = Fr|
|00000d00| 6f 6e 74 57 69 6e 64 6f | 77 28 29 3b 0d 09 09 74 |ontWindo|w();...t|
|00000d10| 68 65 44 65 73 69 72 65 | 64 54 6f 70 4c 65 66 74 |heDesire|dTopLeft|
|00000d20| 20 3d 20 74 6f 70 4c 65 | 66 74 3b 0d 09 09 74 68 | = topLe|ft;...th|
|00000d30| 65 44 65 73 69 72 65 64 | 53 69 7a 65 20 3d 20 73 |eDesired|Size = s|
|00000d40| 69 7a 65 3b 0d 09 09 74 | 68 65 43 75 72 72 65 6e |ize;...t|heCurren|
|00000d50| 74 53 74 61 74 65 20 3d | 20 74 68 65 54 72 61 6e |tState =| theTran|
|00000d60| 73 69 74 69 6f 6e 73 5b | 74 68 65 43 75 72 72 65 |sitions[|theCurre|
|00000d70| 6e 74 53 74 61 74 65 5d | 3b 0d 09 09 50 6f 6b 65 |ntState]|;...Poke|
|00000d80| 4d 65 6e 75 42 61 72 28 | 29 3b 0d 09 7d 0d 7d 0d |MenuBar(|);..}.}.|
|00000d90| 0d 76 6f 69 64 20 49 6e | 73 74 61 6c 6c 50 55 46 |.void In|stallPUF|
|00000da0| 50 61 74 63 68 65 73 28 | 29 0d 7b 0d 09 52 65 6d |Patches(|).{..Rem|
|00000db0| 65 6d 62 65 72 41 34 28 | 29 3b 0d 0d 09 2f 2f 20 |emberA4(|);...// |
|00000dc0| 70 61 74 63 68 20 4d 65 | 6e 75 53 65 6c 65 63 74 |patch Me|nuSelect|
|00000dd0| 20 73 6f 20 77 65 20 63 | 61 6e 20 63 68 6f 6f 73 | so we c|an choos|
|00000de0| 65 20 6d 65 6e 75 20 69 | 74 65 6d 73 0d 09 74 68 |e menu i|tems..th|
|00000df0| 65 4f 6c 64 4d 65 6e 75 | 53 65 6c 65 63 74 20 3d |eOldMenu|Select =|
|00000e00| 20 28 4d 65 6e 75 53 65 | 6c 65 63 74 50 72 6f 63 | (MenuSe|lectProc|
|00000e10| 29 20 4e 47 65 74 54 72 | 61 70 41 64 64 72 65 73 |) NGetTr|apAddres|
|00000e20| 73 28 5f 4d 65 6e 75 53 | 65 6c 65 63 74 2c 20 54 |s(_MenuS|elect, T|
|00000e30| 6f 6f 6c 54 72 61 70 29 | 3b 0d 09 4e 53 65 74 54 |oolTrap)|;..NSetT|
|00000e40| 72 61 70 41 64 64 72 65 | 73 73 28 28 6c 6f 6e 67 |rapAddre|ss((long|
|00000e50| 29 20 5f 50 61 74 63 68 | 65 64 4d 65 6e 75 53 65 |) _Patch|edMenuSe|
|00000e60| 6c 65 63 74 2c 20 5f 4d | 65 6e 75 53 65 6c 65 63 |lect, _M|enuSelec|
|00000e70| 74 2c 20 54 6f 6f 6c 54 | 72 61 70 29 3b 0d 0d 09 |t, ToolT|rap);...|
|00000e80| 2f 2f 20 66 6f 72 20 6d | 6f 76 69 6e 67 20 77 69 |// for m|oving wi|
|00000e90| 6e 64 6f 77 73 20 61 72 | 6f 75 6e 64 0d 09 74 68 |ndows ar|ound..th|
|00000ea0| 65 4f 6c 64 44 72 61 67 | 57 69 6e 64 6f 77 20 3d |eOldDrag|Window =|
|00000eb0| 20 28 44 72 61 67 57 69 | 6e 64 6f 77 50 72 6f 63 | (DragWi|ndowProc|
|00000ec0| 50 74 72 29 20 4e 47 65 | 74 54 72 61 70 41 64 64 |Ptr) NGe|tTrapAdd|
|00000ed0| 72 65 73 73 28 5f 44 72 | 61 67 57 69 6e 64 6f 77 |ress(_Dr|agWindow|
|00000ee0| 2c 20 54 6f 6f 6c 54 72 | 61 70 29 3b 0d 09 4e 53 |, ToolTr|ap);..NS|
|00000ef0| 65 74 54 72 61 70 41 64 | 64 72 65 73 73 28 28 6c |etTrapAd|dress((l|
|00000f00| 6f 6e 67 29 20 5f 50 61 | 74 63 68 65 64 44 72 61 |ong) _Pa|tchedDra|
|00000f10| 67 57 69 6e 64 6f 77 2c | 20 5f 44 72 61 67 57 69 |gWindow,| _DragWi|
|00000f20| 6e 64 6f 77 2c 20 54 6f | 6f 6c 54 72 61 70 29 3b |ndow, To|olTrap);|
|00000f30| 0d 0d 09 74 68 65 4f 6c | 64 47 72 6f 77 57 69 6e |...theOl|dGrowWin|
|00000f40| 64 6f 77 20 3d 20 28 47 | 72 6f 77 57 69 6e 64 6f |dow = (G|rowWindo|
|00000f50| 77 50 72 6f 63 50 74 72 | 29 20 4e 47 65 74 54 72 |wProcPtr|) NGetTr|
|00000f60| 61 70 41 64 64 72 65 73 | 73 28 5f 47 72 6f 77 57 |apAddres|s(_GrowW|
|00000f70| 69 6e 64 6f 77 2c 20 54 | 6f 6f 6c 54 72 61 70 29 |indow, T|oolTrap)|
|00000f80| 3b 0d 09 4e 53 65 74 54 | 72 61 70 41 64 64 72 65 |;..NSetT|rapAddre|
|00000f90| 73 73 28 28 6c 6f 6e 67 | 29 20 5f 50 61 74 63 68 |ss((long|) _Patch|
|00000fa0| 65 64 47 72 6f 77 57 69 | 6e 64 6f 77 2c 20 5f 47 |edGrowWi|ndow, _G|
|00000fb0| 72 6f 77 57 69 6e 64 6f | 77 2c 20 54 6f 6f 6c 54 |rowWindo|w, ToolT|
|00000fc0| 72 61 70 29 3b 0d 0d 09 | 74 68 65 4f 6c 64 46 69 |rap);...|theOldFi|
|00000fd0| 6e 64 57 69 6e 64 6f 77 | 20 3d 20 28 46 69 6e 64 |ndWindow| = (Find|
|00000fe0| 57 69 6e 64 6f 77 50 72 | 6f 63 50 74 72 29 20 4e |WindowPr|ocPtr) N|
|00000ff0| 47 65 74 54 72 61 70 41 | 64 64 72 65 73 73 28 5f |GetTrapA|ddress(_|
|00001000| 46 69 6e 64 57 69 6e 64 | 6f 77 2c 20 54 6f 6f 6c |FindWind|ow, Tool|
|00001010| 54 72 61 70 29 3b 0d 09 | 4e 53 65 74 54 72 61 70 |Trap);..|NSetTrap|
|00001020| 41 64 64 72 65 73 73 28 | 28 6c 6f 6e 67 29 20 5f |Address(|(long) _|
|00001030| 50 61 74 63 68 65 64 46 | 69 6e 64 57 69 6e 64 6f |PatchedF|indWindo|
|00001040| 77 2c 20 5f 46 69 6e 64 | 57 69 6e 64 6f 77 2c 20 |w, _Find|Window, |
|00001050| 54 6f 6f 6c 54 72 61 70 | 29 3b 0d 7d 00 00 00 00 |ToolTrap|);.}....|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00001090| f7 42 4e ad 11 fa 41 ed | f7 80 2b 48 f7 32 3f 3c |.BN...A.|..+H.2?<|
|000010a0| 00 02 20 6d f7 48 2f 28 | 00 02 4e ad 14 12 48 78 |.. m.H/(|..N...Hx|
|000010b0| 0c 50 55 46 50 61 74 63 | 68 65 73 2e 63 3a 02 00 |.PUFPatc|hes.c:..|
|000010c0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 64 00 00 |..TEXTKA|HL...d..|
|000010d0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 64 00 00 |..TEXTKA|HL...d..|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 a8 56 0e ba 00 00 | 0f dc 00 00 01 92 20 68 |...V....|...... h|
|00001100| 00 10 4e 90 4e 5e 4e 75 | 4e 56 ff f8 2f 0c 48 6e |..N.N^Nu|NV../.Hn|
|00001110| ff f8 48 6e ff fc 3f 2e | 00 0c 2f 2e 00 08 20 6d |..Hn..?.|../... m|
|00001120| f7 48 20 68 00 14 4e 90 | 28 40 20 0c 4f ef 00 0e |.H h..N.|(@ .O...|
|00001130| 66 0a 2f 2e 00 08 4e ad | 16 f2 58 8f 20 0c 28 5f |f./...N.|..X. .(_|
|00001140| 4e 5e 4e 75 4e 56 00 00 | 2f 2e 00 08 20 6d f7 48 |N^NuNV..|/... m.H|
|00001150| 20 68 00 18 4e 90 4e 5e | 4e 75 4e 56 00 00 4a 2d | h..N.N^|NuNV..J-|
|00001160| f7 2a 67 04 70 00 60 10 | 2f 2e 00 08 20 6d f7 48 |.*g.p.`.|/... m.H|
|00001170| 20 68 00 2c 4e 90 58 8f | 4e 5e 4e 75 4e 56 00 00 | h.,N.X.|N^NuNV..|
|00001180| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 06 | 00 04 00 29 00 03 01 dd |........|...)....|
|000011b0| 02 7d 00 2d 00 05 03 3f | 02 71 a8 97 ef c1 00 00 |.}.-...?|.q......|
|000011c0| 00 e1 00 00 00 ef 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|000011d0| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 74 30 c4 |...L...L|...F.t0.|
|000011e0| 11 a2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000011f0| 00 0a 03 ed 00 00 00 00 | 00 00 00 74 2f c4 13 43 |........|...t/..C|
|00001200| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00001210| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+